<?php
class Choice extends AppModel{
	var $name = 'Choice';
	var $belongsTo = 'Item';
	
	function addSome($choices, $item_id){
		foreach($choices as $value=>$text){
			//$choice_obj = $this->new;
			$choice = array( 'Choice'=>array( 'item_id'=>$item_id, 'value'=>$value, 'text'=>$text ) );
			$this->create($choice);
			$this->save($choice);
		}
	}
}

?>
